/**
 * 
 */
package com.dfhc.activiti.customformtypes;

import org.activiti.engine.form.AbstractFormType;

/**
 * @author longsebo
 * 扩展多行文本类型
 */
public class TextareaFormType extends AbstractFormType {

	/* (non-Javadoc)
	 * @see org.activiti.engine.form.FormType#getName()
	 */
	@Override
	public String getName() {
		return "textarea";
	}

	/* (non-Javadoc)
	 * @see org.activiti.engine.form.AbstractFormType#convertFormValueToModelValue(java.lang.String)
	 */
	@Override
	public Object convertFormValueToModelValue(String propertyValue) {
		return propertyValue;
	}

	/* (non-Javadoc)
	 * @see org.activiti.engine.form.AbstractFormType#convertModelValueToFormValue(java.lang.Object)
	 */
	@Override
	public String convertModelValueToFormValue(Object modelValue) {
		return (String)modelValue;
	}

}
